#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void swap(int* a, int* b) {
	int temp;
	temp = *a;
	*a = *b;
	*b = temp;
}

void exchange(int* a, int* b,int* c) {
	if (*a < *b)
	{
		swap(a, b);
	}
	if (*a < *c)
	{
		swap(a, c);
	}
	if (*b < *c)
	{
		swap(b, c);
	}

}

int main()
{
	int a, b, c;
	int* q1, * q2, * q3;
	puts("Please input three key numbers you want to rank:");
	scanf("%d,%d,%d", &a, &b, &c);
	q1 = &a;
	q2 = &b;
	q3 = &c;
	exchange(q1, q2, q3);
	printf("\n%d,%d,%d\n", a, b, c);
	return 0;
}